/*
 *  Copyright (C) 2010 Matthias Buch-Kromann <mbk.isv@cbs.dk>
 * 
 *  This file is part of the IncrementalParser package.
 *  
 *  The IncrementalParser program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General License for more details.
 * 
 *  You should have received a copy of the GNU Lesser General License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.osdtsystem.incparser.graphs;

/**
 *
 * @author Matthias Buch-Kromann <mbk.isv@cbs.dk>
 */
public interface LocalGraph extends Cloneable {
    // Node degrees
    int degree();
    int inDegree();
    int outDegree();

    // Edge, edge type and node conversion
    int type(int edge);
    int node(int edge);
    int edge(int node, int type);

    // Edges and edge frames
    int inEdge(int index);
    int outEdge(int index);
    int inEdgeNode(int index);
    int inEdgeType(int index);
    int outEdgeNode(int index);
    int outEdgeType(int index);
    int[] outFrame(int typeThreshold);
    int[] outFrame();
    int headEdge();
    int headNode();
    int headType();

    // Empty local graph
    LocalGraph NULLLOCALGRAPH = null;
}
